<?php get_header(); ?>
	
	<div id="container">
		<div id="content">

<?php the_post(); ?>

			<nav id="nav-above" class="group" role="navigation">
				<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
				<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
			</nav><!-- #nav-above -->
			
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<header>
					<h1 class="entry-title"><?php the_title(); ?></h1>
				
					<div class="entry-meta">
						<span class="meta-prep meta-prep-author"><?php _e('By ', 'spartans-speak'); ?></span>
						<span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( false, $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'spartans-speak' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
						<span class="meta-sep"> | </span>
						<span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'spartans-speak'); ?></span>
						<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:s0') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
						<?php edit_post_link( __( 'Edit', 'spartans-speak' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
					</div><!-- .entry-meta -->
					
					<div class="social-media group">
						<div class="fb-like" data-href="<?php echo get_permalink($post->ID); ?>" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="tahoma"></div>
						<div class="twitter-tweet">
							<a href="https://twitter.com/share" class="twitter-share-button" data-via="spartanspeak" data-text="<?php the_title(); ?>" data-url="<?php the_permalink(); ?>">Tweet</a>
							<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
							if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";
							fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
							</script>
						</div>
					</div><!-- .social-media -->
				</header>
				
				<div class="entry-content">
					<?php the_content(); ?>
					<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'spartans-speak' ) . '&after=</div>') ?>
                </div><!-- .entry-content -->
				
				<footer>
					<div class="entry-utility">
				<?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss">RSS feed for this post</a>.', 'spartans-speak' ),
					get_the_category_list(', '),
					get_the_tag_list( __( ' and tagged ', 'spartans-speak' ), ', ', '' ),
					get_permalink(),
					the_title_attribute('echo=0'),
					get_post_comments_feed_link() ) ?>	
				
				<?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
					<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'your-theme' ), get_trackback_url() ) ?>
				<?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
					<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'your-theme' ), get_trackback_url() ) ?>
				<?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
					<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'your-theme' ) ?>
				<?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
					<?php _e( 'Both comments and trackbacks are currently closed.', 'your-theme' ) ?>
				<?php endif; ?>
				<?php edit_post_link( __( 'Edit', 'spartans-speak' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
					</div><!-- .entry-utility -->
				</footer>
			</article><!-- #post-<?php the_ID(); ?> -->
			
			<nav id="nav-below" class="group" role="navigation">
				<div class="nav-precious"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
				<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
			</nav><!-- #nav-below -->
			
			<div id="author-bio">
				<div id="author-title" class="entry-title">
					<h3>About The <span>Author</span></h3>
				</div>
				<div class="author-content group">
					<?php $gravatar_link = 'http://www.gravatar.com/avatar/' . md5(get_the_author_meta('user_email')) . '?s=100'; echo '<img src="' . $gravatar_link . '" alt="" />'; ?>
       				<h4><a href="<?php the_author_url(); ?>"><?php the_author_meta('display_name'); ?></a></h4>
       				<p><?php the_author_meta('description'); ?></p>
       			</div>              
			</div><!-- #author-bio -->
<?php comments_template('', true); ?>

		</div><!-- #content -->
	</div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
